home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 30 / Amiga Format AFCD30 (Sep 1998, Issue 114).iso / -seriously_amiga- / workbench / lfsystembinder / examples / grabvar.sh next >
Text File  |  1998-06-22  |  601b  |  20 lines

  1. #   GrabVar.sh
  2. #       © LFSoft 1995
  3. #
  4. #   This script for CSH 5.20+ grab variables on tops of env: tree.
  5. #
  6. #  LFSystemBinder must run with its default Arexx port "LFSystemBinder.rdv"
  7. #
  8. #   Note: This file is quite obsolete (as LFSystemBinder can grab all variables
  9. #   since V2.0). It must be considered only as an example of using CSH with
  10. #   LFSystemBinder
  11.  
  12. cd env:
  13.     # Read variables but *.prefs
  14. rxsend -l LFSystemBinder.rdv show var
  15. foreach -v var ( ~(*.prefs*) ) \
  16. "if -n -d $var; rxsend -l LFSystemBinder.rdv grab var $var; endif"
  17.     # Grab variables ...
  18.  
  19. cd ~; # Return to the previous CD
  20.